package edu;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class jiemian {


    public jiemian(){

        JFrame jframe = new JFrame("教职工学籍经历系统");
        jframe.setLocationRelativeTo(null);
        Dimension d = new Dimension(400, 400);
        jframe.setSize(d);
        jframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        jframe.setVisible(true);
        JButton button1 = new JButton("添加教职工");
        JButton button2 = new JButton("修改教职工学校");
        JButton button3 = new JButton("查询教职工学位");
        JButton button4 = new JButton("删除教职工");
        JButton button5 = new JButton("浏览教职工经历");
        JButton button6 = new JButton("修改毕业时间");
        button1.setLocation(50,50);
        button1.setSize(125,40);
        button2.setLocation(215,50);
        button2.setSize(125,40);
        button6.setLocation(50,150);
        button6.setSize(125,40);
        button4.setLocation(215,150);
        button4.setSize(125,40);
        button5.setLocation(50,250);
        button5.setSize(125,40);
        button3.setLocation(215,250);
        button3.setSize(125,40);
        JPanel panel = new JPanel(null);
        panel.setSize(800, 400);
        panel.setBackground(Color.white);
        panel.add(button1);
        panel.add(button2);
        panel.add(button3);
        panel.add(button4);
        panel.add(button5);panel.add(button6);
        jframe.getContentPane().add(panel);
        button1.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                Add add = new Add();
            }
        });
        button2.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                Change change = new Change();
            }
        });
        button3.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                inquire ask = new inquire();
            }
        });
        button6.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                change1 change1 = new change1();
            }
        });



        button4.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent e){
                delete delete =new delete();
            }
        });
        button5.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent e){
                browse look =new browse();
            }
        });

    }
}
